<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .span_text{
            font-size: small;
            color: #b4b1b1;
        }
        a{text-decoration:none}
        /*鼠标点击前*/
        a:link {
            color: #151414;
        }
        /*鼠标点击过后*/
        a:visited {
            color: #313030;
        }
        /*鼠标悬停时*/
        a:hover {
            color:#f99e01;
        }

        /*鼠标点击中*/
        a:active {
            color:#313030;
        }
    </style>
</head>
<body>
<table style="width: 90%; text-align: left">
    <tr style="background-color: #f1efef">
        <td>序号</td>
        <td>分类</td>
        <td>书名</td>
        <td>最新章节</td>
        <td>作者</td>
        <td>字数</td>
        <td>状态</td>
        <td>更新时间</td>
    </tr>
    <tr class="span_text" th:each="b:${pageInfo.list}">
        <td th:text="${b.blId}"></td>
        <td th:text="${'['+b.type.tName+']'}"></td>
        <td>
            <a th:href="@{/book/showBookInfo(blId=${b.blId})}" style="font-size: medium;" th:text="${b.blName}"></a>
        </td>
        <th th:if="${b.books.size()==0}">无</th>
        <td th:if="${b.books.size()>0}">
            <a th:href="@{/book/queryChapterById(bcid=${b.books.get(b.books.size()-1).getBChapterid()})}" style="font-size: medium;" th:text="${b.books.get(b.books.size()-1).bChaptername}"></a>
        </td>
        <td th:text="${b.author.aName}"></td>
        <td th:if="${b.sumNum<10000}" th:text="${b.sumNum+'字'}"></td>
        <td th:if="${b.sumNum>=10000}" th:text="${b.sumNum/10000.0+'万字'}"></td>
        <td th:if="${b.blSpeed==1}">连载中</td>
        <td th:if="${b.blSpeed==0}">已完结</td>
        <td th:text="${b.newDate}"></td>
    </tr>
</table>
<div style="display:inline-block;width: 100%;text-align: center" th:include="common/typepage"></div>
</body>
</html>